{extend name='admin@main'}

{block name="content"}

{include file='store@goods/form_style'}
<div class="layui-card-body think-box-shadow padding-left-40">
  <div class="layui-tab">
    
    <ul class="layui-tab-title">
      {if auth("member/index/memberInfo")}
      <li "><a data-open="{:url('memberInfo')}?id={$credits.user_id}">会员基本信息</a></li>
      {/if}
      {if auth("member/index/integral")}
      <li ><a data-open="{:url('integral')}?id={$credits.user_id}">积分详情</a></li>
      {/if}
      <li class="layui-this">发布豆详情</li>
      
    </ul>
    <div class="layui-tab-content">

      <div class="layui-tab-item layui-show">
        <fieldset class="layui-elem-field layui-field-title" >
          <legend>发布豆详情</legend>
        </fieldset>
        <form class="layui-form layui-form-pane" action="">
          <div class="layui-form-item">
            <div class="layui-inline">
              <label class="layui-form-label">总发布豆</label>
              <div class="layui-input-inline">
                <input name="number" value="{$credits.publish_bean}" autocomplete="off" readonly="" class="layui-input" type="text">
              </div>
            </div>
            <div class="layui-inline">
              <label class="layui-form-label">可用发布豆</label>
              <div class="layui-input-inline">
                <input name="number" autocomplete="off" value="{$credits.available}" readonly="" class="layui-input" type="text">
              </div>
            </div>
            <div class="layui-inline">
              <label class="layui-form-label">冻结发布豆</label>
              <div class="layui-input-inline">
                <input name="number" autocomplete="off" value="{$credits.clock_publish_bean}" readonly="" class="layui-input" type="text">
              </div>
            </div>
            <div class="layui-inline">
              <label class="layui-form-label">已用发布豆</label>
              <div class="layui-input-inline">
                <input name="number" autocomplete="off" value="{$credits.used_publish_bean}" readonly="" class="layui-input" type="text">
              </div>
            </div>
          </div>
        </form>
        <fieldset class="layui-elem-field layui-field-title" >
          <legend>积分记录</legend>
        </fieldset>
        <table class="layui-table margin-top-10" lay-skin="line">
          <thead>
            <tr>
              <th>类型</th>
              <th>积分</th>
              <th>类型</th>
              <th>时间</th>
            </tr>
          </thead>
          <tbody>
           
          </tbody>
        </table>
       
      </div>

    </div>
  </div>
</div>

{/block}

{block name='script'}

<script>
  window.form.render();
  layui.use('laydate', function(){
    var laydate = layui.laydate;
    //常规用法
    laydate.render({
      elem: '#test1'
    });
    laydate.render({
      elem: '#test2'
    });
    
  });

  require(['ckeditor', 'angular'], function () {
     window.createEditor('[name="content"]', {height: 200});
     window.createEditor('[name="content1"]', {height: 200});
     window.createEditor('[name="content2"]', {height: 200});
   });
</script>

{/block}